import type {TShopList} from "@/types";

export default function (){
    const shopList: TShopList = [
        {sid: 1, name: '羊肉串', price: 18},
        {sid: 2, name: '猪肉串', price: 20},
        {sid: 3, name: '鸡翅', price: 5},
    ]

    if (!localStorage.getItem('shopList')) {
        localStorage.setItem('shopList', JSON.stringify(shopList))
    }
    return {}
}